#include<bits/stdc++.h>
#define pb push_back
#define fi first
#define se second
using namespace std;
typedef long long ll;
const int N=100010;
int n;
int a[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=0;i<n;i++) cin>>a[i];
    sort(a,a+n);
    int j=0,ans=n;
    for(int i=0;i<n;i++){
        while(j<n&&a[j]<=a[i]) j++;
        if(j<n){
            ans--;
            j++;
        }
    }
    cout<<ans<<endl;
    return 0;
}